<?php
namespace app\validate\money;

use think\Validate;

class PostValidate extends Validate
{
    protected $rule =   [
        'content'   => 'require|max:100',
        'num'       => 'integer',
        'subtype'   => 'require',
        'type'      => 'require',
        'user'      => 'number',
    ];
    
    protected $message  =   [
        'content.require' => '备注错误',
        'content.max'     => '备注太长',
        'num'             => '金额错误',
        'subtype'         => '收支问题',
        'type'            => '类型问题',
        'user'            => '用户问题'
    ];
    
}